package website.haicheng.cloudauth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import website.haicheng.core.base.BaseEntity;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * @description:
 * @author: 582895699@qq.com
 * @time: 2021/2/20 下午 03:09
 */
@Getter
@Setter
@ApiModel(description = "角色返回实体类")
public class RoleVo extends BaseEntity {
    private static final long serialVersionUID = -8781856066913870507L;

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    private String modifyBy;

    @ApiModelProperty(value = "状态")
    private Boolean isDelete;

    @ApiModelProperty(value = "角色ID")
    private Set<Long> permissionIds;
}
